|
Menu location |
---|
Part → Join → Embed Object |
Workbenches |
Part |
Default shortcut |
None |
Introduced in version |
0.16 |
See also |
Part JoinConnect, Part JoinCutout, Part Boolean, Part Thickness |
Instrumentul de încorporare încorporează un obiect cu pereți (de exemplu, o țeavă) într-un alt obiect cu pereți.
Base
Base
The algorithms behind Join tools are quite simple, and understanding them is important to use the tools correctly.
1. Base object is boolean-cut with Tool object. The resulting shape is a set (compound) of non-intersecting solids (typically, two).
2. The resulting compound is filtered: only the largest solid is kept.
3. That largest solid is boolean-fused with Tool object.
4. If Refine property is true, the resulting shape is refined.
The Join tools can by used in macros and from the python console by using the following function:
JoinFeatures.makePartJoinFeature(name = 'Embed', mode = 'Embed')
Exempluː
import JoinFeatures
j = JoinFeatures.makePartJoinFeature(name = 'Embed', mode = 'Embed' )
j.Base = FreeCADGui.Selection.getSelection()[0]
j.Tool = FreeCADGui.Selection.getSelection()[1]
The tool itself is implemented in Python, see /Mod/Part/JoinFeatures.py under where FreeCAD is installed.